cmake_minimum_required(VERSION 3.16)
project(gdfang LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)

find_package(Qt5 COMPONENTS Widgets REQUIRED)

include_directories(
    include
    ${Qt5Widgets_INCLUDE_DIRS}
)

set(RESOURCES
    src/resources.qrc
)

add_executable(${PROJECT_NAME}
    src/main.cpp
    src/GDFang.cpp
    src/Toast.cpp
    src/Toast.ui
    include/GDFang.h
    include/Toast.h
    ${RESOURCES}
)

target_link_libraries(${PROJECT_NAME} 
    PRIVATE Qt5::Widgets
)
